<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


<html>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<head>
<base href="<%=basePath%>">
    <title>发送短信</title>
    <link rel="stylesheet" type="text/css" href="css/main.css">
    
</head>

<body>

<s:fielderror />

<table border="1" width="100%">
	<tr height="100%">
		<td width="100%" align="center">
			<s:form action="sendsms.action" name="inputform" enctype="multipart/form-data" cssClass="myform" >
				
				<span class="mydiv">
				接收对象:
				<textarea id="toPersons" name="toPersons"  style="width:160;height: 60;"></textarea>
				<input type="button" onclick="openform()" value="选择"/>
						
				</span>
				
			    
			      <div>
			      	接收号码:<input name="toMobiles"/>接收号码以半角分号";"隔开！
			      </div>
			      <div>
			      	号码文件:
			      	<input type='file' name="mobilefile"/>
			      </div>
			      <div>
			      	短信标题:
			      	<input type="text" name="title" value="11111111111111"> 
			      </div>
				<div>
					短信内容:
			      	
			      	<textarea name="toPersons"></textarea>
			     </div>
			      
			    
			</s:form>
		</td>
	</tr>
	<tr><td align="center">
			  <input type="button" onclick="document.all.inputform.submit()" value="提交">
			  <input type="button" value="重置">
			      </td></tr>
</table>

    <script type="text/javascript">
    	function openform(){
    		var title = ""; 
		var url = 'userSel.jsp';
		var pageUrl="userSel.jsp";
		var paraObj = new Object();
		paraObj.url=url;
		paraObj.title=title;
		var obj=document.getElementById('toPersons');
		paraObj.input=obj;
		var sFeatures = 'help:no;status:1;dialogHeight:500px;dialogWidth:350px;center:1';
	    var rtnObj= window.showModalDialog(pageUrl,paraObj,sFeatures );
	    //alert('rtnObj='+rtnObj);
		if(rtnObj){
			var result=rtnObj.result;
			obj.value=result;
		}else{
    		
    	}
    	alert('openform');
    	}
    </script>
</body>
</html>



